package entity

import (
	"time"
)

type User struct {
	Id         int
	Name       string
	Age        int
	Birthday   string
	UpdateTime time.Time `gorm:"autoUpdateTime"`
	CreateTime time.Time `gorm:"autoCreateTime"`
	DeletedAt  uint      `gorm:"column:deleted;default:0;index"`
	DeptId     int       `gorm:"column:dept_id"`
}

// 表示把User 结构体默认操作的表改为 user 表
func (User) TableName() string { return "user" }
